import request from '../request.js'

// 游戏列表
function list(query) {
    return request.get('/api/game/list', query)
}

// 游戏数量
function gameNum() {
    return request.get('/api/game/gameNum', {}, false)
}

// 游戏数量
function getProvider() {
    return request.get('/api/game/getProvider', {}, false)
}

// 分类排行
function categoryRanking() {
    return request.get('/api/game/categoryRanking', {}, false)
}

// 游戏排行
function gameRanking() {
    return request.get('/api/game/gameRanking', {}, false)
}

// 游戏详情
function detail(query) {
    return request.get('/api/game/detail', query,)
}

// 游戏VIP等级
function level(query) {
    return request.get('/api/game/vip/level', query,)
}

// VIP
function vipList(query) {
    return request.get('/api/game/vip/list', query)
}

// 邀请开宝箱
function gradientInvite(query) {
    return request.get('/api/game/gradient/invite', query)
}

// 游戏流水类型
function logType(query) {
    return request.get('/api/game/logType', query)
}

// 投注列表
function bet(query) {
    return request.get('/api/game/bet', query)
}

// 查询余额
function balance(query) {
    return request.get('/api/game/balance', query)
}

// 浏览记录
function favoriteList(query) {
    return request.get('/api/game/favorite/list', query)
}

function favoriteLast() {
    return request.get('/api/game/favorite/last')
}


export default {
    list,
    gameNum,
    getProvider,
    categoryRanking,
    gameRanking,
    detail,
    level,
    vipList,
    gradientInvite,
    logType,
    bet,
    balance,
    favoriteList,
    favoriteLast
}
